/*
 * Copyright By Peak3
 * Copyright By c336bf6ff03a756989bb456b5b5e3271228d43ed38461eb5cb5755d17a2fc9b8
 * All rights reserved.
 *
 * If you are not the intended user, you are hereby notified that any use, disclosure, copying, printing, forwarding or
 * dissemination of this property is strictly prohibited. If you have got this file in error, delete it from your system.
 */

package com.vv.tools.modules.auth.config;

import java.util.ArrayList;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author liwen
 */
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = AuthUrlConfig.PREFIX)
public class AuthUrlConfig {

    public static final String PREFIX = "auth.url";

    private List<String> permit = new ArrayList<>(List.of("/login", "/api/message/public/**", "/api/message/submit", "/api/message/*/like"));

    private String loginUrl = "/login";

    private String logoutUrl = "/logout";

}
